import * as req from '@/request';

export async function list(
  params?: { [key: string]: any },
  sorter?: { [key: string]: any },
  filter?: { [key: string]: any },
) {
  return req.postForm<API.VpnServerDeployList>(
    '/vpnserverdeploy/list',
    params,
    sorter,
    filter,
  );
}

export async function getform(data: { [key: string]: any }) {
  return req.postForm<API.VpnServerDeployFormModel>(
    '/vpnserverdeploy/getform',data
  );
}

export async function get(data: { [key: string]: any }) {
  return req.postForm<API.VpnServerDeployModel>(
    '/vpnserverdeploy/get',data
  );
}

export async function add(data: { [key: string]: any }) {
  return req.postJson<API.Result>('/vpnserverdeploy/create', data);
}

export async function update(data: { [key: string]: any }) {
  return req.postJson<API.Result>('/vpnserverdeploy/update', data);
}

// export async function remove(data: { [key: string]: any }) {
//   return req.post<API.Result>('/vpnserverdeploy/delete', data);
// }

export async function publish(data: { [key: string]: any }) {
  return req.post<API.Result>('/vpnserverdeploy/publish', data);
}

export async function close(data: { [key: string]: any }) {
  return req.post<API.Result>('/vpnserverdeploy/close', data);
}



